MonoGameObject = ExtendClass(MonoObj)
function MonoGameObject:__init()
	self.addr = self:OnGetAddr()
	if not self.addr then
		error("一定要用函数OnGetAddr赋值 self.addr ")
		return
	end
	self:GameObjectLoad()
end

function MonoGameObject:OnGetAddr()

end

function MonoGameObject:GameObjectLoad()
	XResLua.CreateInstance(self.addr, self.GameObjectLoaded, self)

end

function MonoGameObject:GameObjectLoaded(gameObject)
	MonoGameObject2Lua.AddObjWithLua(gameObject, self)
	EngineTool.AddComponent(gameObject, MonoGameObject2Lua)
end

--未检验函数
function MonoGameObject:Destroy()
	if not XResLua.ReleaseInstance(self.gameObject) then
		GameObject.Destroy(self.gameObject)
		error("直接销毁")
	else
		error("通过ReleaseInstance销毁")
	end
end